#include<at89x52.h>
void Port2_close()
{
  P2=0xff;
}


void Delay()
{
int j,i;
for(i=1400;i>0;i--)
{
for(j=655536;j>0;j--)
{;}
}
}

void Func1()
{
    char ch2[8]={0X7F,0XBF,0XDF,0XEF,0XF7,0XFB,0XFD,0XFE};
    int i;
   Port2_close();
   for(i=0;i%8<8;i++)
   {
     Delay(); 
     P1=ch2[i%8];
   }
   Port2_close();
}
